<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>构造函数</title>
	</head>
	<body>
		<script>
			 function Girl(namex,xingbiex,agex){
			 	this.name = namex;
			 	this.xingbie = xingbiex;
			 	this.age = agex;
			 }
			  var timo = new Girl("老王","男","18"); 
			  alert("姓名："+timo.name+'性别：'+timo.xingbie+'年龄：'+timo.age);
		</script>
	</body>
</html>
